@charset "utf-8";
.mj-color-picker {
  display: inline-block;
  vertical-align: middle;
  font-size:0;
}
.mj-color-picker-trigger {
  display: inline-block;
  width:30px;
  height: 30px;
  border:1px solid #e6e6e6;
  border-radius:4px;
  padding:3px;
  background: #fff;
  box-sizing: border-box;
  position: relative;
  cursor:pointer;
}
.mj-color-picker-trigger .alpha {
  display: block;
  height: 100%;
  background: url();
}
.mj-color-picker-trigger .bg {
  display:block;
  width:100%;
  height: 100%;
  line-height:22px;
  text-align:center;
}
.mj-color-picker-trigger .bg i {
  font-size: 12px;
  color:#fff;
}

.mj-color-picker-disabled {
  cursor: not-allowed;
}

.mj-color-picker-panel {
  width: 230px;
  background: #fff;
  box-sizing: border-box;
  box-shadow: 1px 1px 3px 1px #ccc;
  border-radius: 3px;
  overflow: hidden;
  user-select: none;
  position: absolute;
  z-index:900;
}

.mj-color-picker-panel * {
  box-sizing: border-box;

}

.mj-color-picker-panel .slider-box {
  display: flex;
  margin-top: 15px;
}

.mj-color-picker-panel .copy-color {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  margin: 0px 0px 0 15px;
  box-shadow: 0 0 2px black;
  overflow: hidden;
  will-change: transfom;
  background-position: 0 0, -4px 4px, 0 4px, -4px 0;
  background-size: 8px 8px;
  background-image: linear-gradient(45deg, rgba(112, 128, 144, .5) 25%, transparent 0), linear-gradient(45deg, transparent 75%, rgba(112, 128, 144, .5) 0), linear-gradient(-45deg, rgba(112, 128, 144, .5) 25%, transparent 0), linear-gradient(-45deg, transparent 75%, rgba(112, 128, 144, .5) 0);
}

.mj-color-picker-panel .slider-outer {
  border: springgreen;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 181px;
}
.mj-color-picker-panel .slider{
  margin: 0px 15px;
}
.mj-color-picker-panel .hue-bar {
  height: 100%;
  background-color: steelblue;
  background-image: linear-gradient(90deg, rgb(255, 0, 0), rgb(255, 0, 255), rgb(0, 0, 255), rgb(0, 255, 255), rgb(0, 255, 0), rgb(255, 255, 0), rgb(255, 0, 0));
}

.mj-color-picker-panel .alpha.slider {
  will-change: transfom;
  background-position: 0 0, -4px 4px, 0 4px, -4px 0;
  background-size: 8px 8px;
  background-image: linear-gradient(45deg, rgba(112, 128, 144, .5) 25%, transparent 0), linear-gradient(45deg, transparent 75%, rgba(112, 128, 144, .5) 0), linear-gradient(-45deg, rgba(112, 128, 144, .5) 25%, transparent 0), linear-gradient(-45deg, transparent 75%, rgba(112, 128, 144, .5) 0);
}


.mj-color-picker-panel .format {
  display: flex;
  margin-top: 15px;
  width: 100%;
  /* flex-direction: column; */
  justify-content: space-between;
}

.mj-color-picker-panel .format > .inputs {
  margin-left: 15px;
  display: block;
  flex-basis: auto;
  width: 178px;
}

.mj-color-picker-panel .format > .inputs input {
  outline: none;
  border: 1px solid #ccc;
  text-align: center;
  width: 100%;
  display: block;
  padding: 4px;
}

.mj-color-picker-panel .format > .inputs input:focus {
  border: 1px solid rgb(26, 115, 232);
}

.mj-color-picker-panel .format-txt {
  color: #aaa;
  padding: 5px;
  font-size: 12px;
  text-align:center;
}
.mj-color-picker-panel .inputs input{
  font-family: Terminal,Consolas;
}

.mj-color-picker-panel .switch {
  width: 20px;
  margin: 0 10px 0 7px;
  display: flex;
}

.mj-color-picker-panel .switch > svg {
  margin: auto 0px;
  border-radius: 2px;
}

.mj-color-picker-panel .switch > svg:hover {
  background-color: #ccc;
}

.mj-color-picker-panel .palettes {
  padding: 5px 0 5px 5px;
  display: flex;
  border-top: 1px solid #ccc;
}

.mj-color-picker-panel .palettes > .switch {
  display: block;
  padding-top: 4px;
  margin-left: 0px;
}

.mj-color-picker-panel .palettes::after {
  content: " ";
  clear: both;
  display: block;
}

.mj-color-picker-panel .colors {
  width: 195px;
}

.mj-color-picker-panel .slider-bg{
 height: 100%;
}
.mj-color-picker-panel .rgb-slider-box{
  padding: 0 10px 5px 10px;
}
.mj-color-picker-panel .rgb-slider-box>.slider-box{
  margin-top:12px;
}
.mj-color-picker-panel .rgba>div,.mj-color-picker-panel .hsla>div{
  width: 25%;
  float: left;
}
.mj-color-picker-panel .inputs>.rgba>div>input,.inputs>.hsla>div>input{
  display: block;
  width: 90%;
  margin: 0 auto;
  padding: 4px 0;
}
.mj-color-picker-panel .inputs input::-webkit-outer-spin-button,
.mj-color-picker-panel .inputs input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.mj-color-picker-panel .inputs input[type="number"]{
  -moz-appearance: textfield;
}

.mj-color-picker-small {
  width:22px;
  height: 22px;
  padding:2px;
}
.mj-color-picker-small .bg {
  line-height: 18px;
}